gh-127802: Schedule removal of legacy tkinter variable trace methods in 3.17#152012
Merged
serhiy-storchaka merged 1 commit intoJun 25, 2026
Merged
Conversation
…thods in 3.17 The tkinter.Variable methods trace_variable(), trace(), trace_vdelete() and trace_vinfo(), deprecated since Python 3.14, are now scheduled for removal in Python 3.17. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Documentation build overview
8 files changed ·
|
Member
Author
|
@hugovk, can we land this in 3.15? These methods were deprecated in 3.14 without clear removal term, but they fail on Tk 9.0, which is now bundled in 3.15 on Windows and optionally on macOS. |
Member
|
Yes, that's okay. |
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
GH-152186 is a backport of this pull request to the 3.15 branch. |
serhiy-storchaka
added a commit
that referenced
this pull request
Jun 25, 2026
…ethods in 3.17 (GH-152012) (GH-152186) The tkinter.Variable methods trace_variable(), trace(), trace_vdelete() and trace_vinfo(), deprecated since Python 3.14, are now scheduled for removal in Python 3.17. (cherry picked from commit deeae2a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The :class:
!tkinter.Variablemethodstrace_variable(),trace(),trace_vdelete()andtrace_vinfo()have been deprecated since Python 3.14 (:gh:120220) and emit aDeprecationWarning. They wrap the Tcltrace variable/vdelete/vinfocommands, which were removed in Tcl 9.0, so they already raiseTclErrorwith Tk 9.This schedules their removal for Python 3.17: the deprecation warnings now state the removal version, and a
pending-removal-in-3.17entry is added (it is included in the 3.16 "What's New" pending-removal section).The methods are intentionally not rewired to the
trace_add()/trace_remove()/trace_info()API; users should migrate to those.🤖 Generated with Claude Code